package com.dmy.chat.server.netty;

import com.dmy.chat.server.netty.message.Messages;
import io.netty.channel.Channel;

/**
 * create by YCQ for 2020/1/15 10:28
 */
public interface UserChannelBind {

    /**
     * 获取channel管理器
     * @return
     */
    IChannelManager getChannelManager();

    /**
     * 注册用户Channel
     * @param userId
     * @param channel
     */
    void register(String userId, Channel channel);

    /**
     *  获取用户的Channel
     * @param userId
     * @return
     */
    Channel getUserChannel(String userId);

}
